package com.qbw.app.module.vehicle.adapter;

import android.content.Context;

import com.qbw.app.model.Vehicle;
import com.qbw.app.model.Warning;

/**
 * @author QBW
 * @date 2019/10/8
 */
public class VehicleNotificationAdapter extends VehicleAdapter {

    public VehicleNotificationAdapter(Context context) {
        super(context);
    }

    @Override
    public int getItemViewType(Object t) {
        if (t instanceof Vehicle) {
            return VehicleViewType.VT_NOTIFICATION_VEHICLE_ITEM;
        } else if (t instanceof Warning) {
            return VehicleViewType.VT_NOTIFICATION_ITEM;
        }
        return super.getItemViewType(t);
    }
}
